package com.hu.gulimallcommon.exception;

/**
 * 参数校验异常枚举类
 */
public enum ValidEnum {

    VALID_SUCCESS(0,"成功"),
    VALID_ERROR(400,"参数错误"),
    VALID_NOT_FOUND(2,"未找到数据"),
    VALID_NOT_LOGIN(3,"未登录"),
    VALID_NOT_AUTH(4,"未授权"),
    VALID_NOT_PERMISSION(5,"无权限"),
    VALID_NOT_ROLE(6,"无角色"),
    VALID_NOT_EXIST(7,"不存在"),
    VALID_NOT_SUPPORT(8,"不支持");

    private int code;
    private String msg;
    ValidEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public int getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }
}
